exports.data = {
  json: {
    kind: "Snippet",
    body: ['"van-area": "@vant/weapp/area/index"'],
    detail: "Area 省市区选择",
    documentation: `在app.json或index.json中引入组件`,
  },
  wxml: {
    kind: "Snippet",
    body: ['<van-area area-list="{{ ${1:areaList} }}"${2} />'],
    detail: "Area 省市区选择",
    documentation: `省市区选择组件通常与 弹出层 组件配合使用。`,
    attrs: [
      {
        kind: "Field",
        body: ["value="],
        detail: "value",
        documentation: "当前选中的省市区code",
        vals: null,
      },
      {
        kind: "Field",
        body: ["title="],
        detail: "title",
        documentation: "顶部栏标题",
        vals: null,
      },
      {
        kind: "Field",
        body: ["area-list="],
        detail: "area-list",
        documentation: "省市区数据，格式见下方",
        vals: null,
      },
      {
        kind: "Field",
        body: ["columns-num="],
        detail: "columns-num",
        documentation: "省市区显示列数，3-省市区，2-省市，1-省",
        vals: {
          kind: "Value",
          body: ["3", "2", "1"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["columns-placeholder="],
        detail: "columns-placeholder",
        documentation: "列占位提示文字",
        vals: null,
      },
      {
        kind: "Field",
        body: ["loading="],
        detail: "loading",
        documentation: "是否显示加载状态",
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["item-height="],
        detail: "item-height",
        documentation: "选项高度",
        vals: null,
      },
      {
        kind: "Field",
        body: ["visible-item-count="],
        detail: "visible-item-count",
        documentation: "可见的选项个数",
        vals: null,
      },
      {
        kind: "Field",
        body: ["confirm-button-text="],
        detail: "confirm-button-text",
        documentation: "确认按钮文字",
        vals: null,
      },
      {
        kind: "Field",
        body: ["cancel-button-text="],
        detail: "cancel-button-text",
        documentation: "取消按钮文字",
        vals: null,
      },
      {
        kind: "Event",
        body: ["bind:confirm="],
        detail: "bind:confirm",
        documentation: "点击右上方完成按钮",
        vals: null,
      },
      {
        kind: "Event",
        body: ["bind:cancel="],
        detail: "bind:cancel",
        documentation: "点击取消按钮时",
        vals: null,
      },
      {
        kind: "Event",
        body: ["bind:change="],
        detail: "bind:change",
        documentation: "选项改变时触发",
        vals: null,
      },
    ],
  },
};
